﻿namespace PeiYue.Model.Models.SM
{
    /// <summary>
    /// 销售单明细
    /// </summary>
    [SqlSugar.SugarTable("oms_sm_so_detail")]
    public class SoDetailDao : BaseDao
    {
        /// <summary>
        /// 销售订单id
        /// </summary>
        public long so_header_id { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int od { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public long sku_id { get; set; }
        /// <summary>
        /// 结算单位
        /// </summary>
        public long uom_id { get; set; }
        public int init_qty { get; set; }
        /// <summary>
        /// 结算需求数量
        /// </summary>
        public int need_qty { get; set; }
        /// <summary>
        /// 结算实发数量
        /// </summary>
        public int real_qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public int price { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 销售单位
        /// </summary>
        public long sm_uom_id { get; set; }
        /// <summary>
        /// 销售需求数量
        /// </summary>
        public double sm_need_qty { get; set; }
        /// <summary>
        /// 销售实发数量
        /// </summary>
        public double sm_real_qty { get; set; }
        /// <summary>
        /// 已退数量
        /// </summary>
        public int rma_qty { get; set; }
        /// <summary>
        /// 已退金额
        /// </summary>
        public int rma_amt { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        public int error { get; set; }
        public int error_qty { get; set; }
        public string error_time { get; set; }
    }
}
